package com.kingint.mbg.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author wxh
 * @since 2020-12-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Notice对象", description="公告表")
public class Notice implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "公告标题")
    @TableField("notice_title")
    private String noticeTitle;

    @ApiModelProperty(value = "公告内容")
    @TableField("notice_content")
    private String noticeContent;

    @ApiModelProperty(value = "是否置顶，1表示置顶，0表示不置顶")
    @TableField("notice_top")
    private Integer noticeTop;

    @ApiModelProperty(value = "公告头像")
    @TableField("notice_avatar")
    private String noticeAvatar;

    @ApiModelProperty(value = "公告浏览量")
    @TableField("notice_pageview")
    private Integer noticePageview;

    @ApiModelProperty(value = "是否已发布信息，0表示未发布，1表示已发布信息")
    @TableField("issue")
    private Integer issue;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private Date createTime;

    @ApiModelProperty(value = "酒店id")
    @TableField("hotel_id")
    private Integer hotelId;


    @ApiModelProperty(value = "发布时间")
    @TableField("issue_time")
    private Date issueTime;

    @ApiModelProperty(value = "状态（做逻辑删除）0删除，1正常")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "用户是否已读（0表示未读，1表示已读）默认未读")
    @TableField(exist = false)
    private Integer readFlag;

}
